package com.quik.backend.service.worker;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.quik.backend.mapper.DtaWorkerDao;
import com.quik.entity.DtaWorker;

@Service
public class DtaWorkerServiceImpl implements DtaWorkerService {

	@Autowired
	private DtaWorkerDao dao;
	@Override
	public void updateWorkerToFree(DtaWorker dtaWorker) {
		dtaWorker.setStatus(DtaWorker.STATUS_FREE);
		dao.updateByFull(dtaWorker);
	}

}
